package com.example.demo.repository;

import com.example.demo.table.UserTable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.HashMap;
import java.util.List;

public interface UserRepository extends JpaRepository<UserTable,Integer> {

    UserTable findByUserName(String userName);

//    @Query(value = "select user.avatar,dy.label from UserTable user ,DynamicTable dy")
//    List<HashMap<String,Object>> selectAvatar();

}
